package com.dw.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dw.core.entity.Permission;
import com.dw.core.entity.Role;

import java.util.List;
import java.util.Set;

/**
 * @author zhangjing
 * @date 2020/8/21 14:52
 * @Description
 */
public interface IPermissionService extends IService<Permission> {

    /**
     * get perm keys by roles
     * @param roles
     * @return
     */
    Set<String> getPermKeysByRoles(List<Role> roles);

}
